/**
 * 
 */
package com.paypal.melearning.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.paypal.melearning.dao.BoardDAO;
import com.paypal.melearning.domain.Board;
import com.paypal.melearning.domain.Pin;

/**
 * @author Prasad
 *
 */
@Component
public class UserService {

	private BoardDAO boardDAO = new BoardDAO();	
	
	public List<Board> getDefaultBoard(){
		
		return boardDAO.getDefaultBoard();
	}
	
	public List<Board> getUserBoards(String userName){
		return boardDAO.getUserBoards(userName);
	}
	
	public List<Board> addPin(Pin newPin, Board board){
		return boardDAO.addPinBoard(newPin,board);
	}
}
